package com.fuhan.controller;

import com.fuhan.common.restful.ResponseEnum;
import com.fuhan.common.restful.ResponseJSON;
import com.fuhan.mapper.MapDataMapper;
import com.fuhan.pojo.MapData;
import com.fuhan.service.MapDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Chao
 * @description:
 * @Date: 2021/3/25 17:36
 */
@RestController
@RequestMapping("/api/map")
public class MapDataController {

    @Autowired
    private MapDataService mapDataService;

    @RequestMapping(value = "",method = RequestMethod.GET)
    public ResponseJSON<MapData> getMapData(){
        return new ResponseJSON<>(mapDataService.getMapData(), ResponseEnum.SUCCESS_OPTION);
    }

}
